//---------------------------------------------------------------------------


#pragma hdrstop

#include "combobox.h"
#include "stdio.h"
#include "util.h"
//---------------------------------------------------------------------------

#pragma package(smart_init)
__fastcall ComboBox::ComboBox(char * s_parser)
{
 left=top=width=height=0;
 action=NULL;
 
 char * p=NULL,t[256];
 int    d;
 char * temp = new char[strlen(s_parser)+1];

 sprintf(t,"Alias_%x",this);

 strcpy(temp,s_parser);
 Width = FindNameInt(temp,"WIDTH");
 strcpy(temp,s_parser);
 Height = FindNameInt(temp,"HEIGHT");
 strcpy(temp,s_parser);
 Top = FindNameInt(temp,"TOP");
 strcpy(temp,s_parser);
 Left = FindNameInt(temp,"LEFT");

 strcpy(temp,s_parser);
 p = FindNameValueEqual(temp,"ALIAS");
 Alias = (p?p:t);

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"ACTION","\"");
 if(p) Action=p;

 delete []temp;
}
